﻿using FangPage.Data;
using System;

namespace FangPage.User.Model
{
    public class UserInfo
    {
        /// <summary>
        /// 编号
        /// </summary>
        [UUID]
        [PrimaryKey]
        public string id { get; set; }

        /// <summary>
        /// 登陆名
        /// </summary>
        public string username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string password { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string headimg { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string realname { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public string gender { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile { get; set; }

        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string email { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string pid { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        [LeftJoin("ROLEINFO","id")]
        public string roleid { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [Map("ROLEINFO","name")]
        public string rolename { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        [LeftJoin("DEPARTMENT", "id")]
        public string departid { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Map("DEPARTMENT", "name")]
        public string departname { get; set; }

        /// <summary>
        /// 用户编码
        /// </summary>
        public string openid { get; set; }

        /// <summary>
        /// 用户备注
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 用户状态
        /// </summary>
        public short status { get; set; }

    }
}
